package com.xing.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by Bradish7Y on 2017/8/21.
 */
//@Component
@ConfigurationProperties("xing")
@Validated
public class DatabaseServersProperties {
    @NotNull
    private String id;

    private List<String> servers;


    public String getId() {
        return id;
    }

    public DatabaseServersProperties setId(String id) {
        this.id = id;
        return this;
    }

    public List<String> getServers() {
        return servers;
    }

    public DatabaseServersProperties setServers(List<String> servers) {
        this.servers = servers;
        return this;
    }
}
